#include "stdafx.h"
#include "%Class%.h"

USING_NAMESPACE_BENTLEY
USING_NAMESPACE_BENTLEY_SQLITE
USING_NAMESPACE_BENTLEY_SQLITE_EC
USING_NAMESPACE_EC
USING_NAMESPACE_BENTLEY_DGNPLATFORM
USING_NAMESPACE_BENTLEY_MOBILEDGN
USING_NAMESPACE_PBBIM
USING_NAMESPACE_PBBIM_CORE
USING_NAMESPACE_PBBIM_COREMODEL
USING_NAMESPACE_PBBIM_ARCHMODEL
USING_NAMESPACE_PBBIM_ARCHTOOL

static %Class% *s_%Class%;

//---------------------------------------------------------------------------------------
// @bsimethod                                              Y.Dong          %CreateTime%
//---------------------------------------------------------------------------------------
%Class%::%Class%() :
%VarsFunctionInit%
{
}

//---------------------------------------------------------------------------------------
// @bsimethod                                              Y.Dong          %CreateTime%
//---------------------------------------------------------------------------------------
%Class%::~%Class%()
{
}

//---------------------------------------------------------------------------------------
// @bsimethod                                              Y.Dong          %CreateTime%
//---------------------------------------------------------------------------------------
%Class%R %Class%::Get()
{
    if (NULL == s_%Class%)
        s_%Class% = new %Class%();

    return *s_%Class%;
}

//---------------------------------------------------------------------------------------
// @bsimethod                                              Y.Dong          %CreateTime%
//---------------------------------------------------------------------------------------
%Class%R %Class%::operator= (const %Class%& val)
{
    if (this == &val)
        return *this;

    %VarsFunctionEqual%

    return *this;
}
